package com.lfsenior.email;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Created by dlupan on 2018/9/14
 */
public class EmailServiceHelper {
    private static ApplicationContext context = null;

    public static ApplicationContext instance() {
        if (null == context) {
            context = new AnnotationConfigApplicationContext(EmailConfig.class);
        }
        return context;
    }
}
